import pandas as pd


class Returns(pd.Series):
    """
    FactorReturn is a Series with date as its indexs
    """

    def __init__(self, name: str, data: pd.Series) -> None:
        pd.Series.__init__(self, data, copy=True)
        self.name = name
        self.dropna(inplace=True)
